/**
 * 
 */
package com.jonosoft.photocast.viewer.web.client.photocast;

import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONString;

/**
 * TODO Add description PhotocastEnclosure (com.jonosoft.photocast.viewer.web.client.PhotocastEnclosure)
 *
 * @author jon
 *
 */
public class PhotocastEnclosure extends PhotocastObject {
	
	private static interface Keys {
		public static final String URL = "url";
		public static final String LENGTH = "length";
		public static final String TYPE = "type";
	}
	
	public String getURL() {
		return JSONStringValueOrNull((JSONString) jsonRep.get(Keys.URL));
	}
	
	public Long getLength() {
		return JSONLongValueOrNull((JSONNumber) jsonRep.get(Keys.LENGTH));
	}
	
	public String getType() {
		return JSONStringValueOrNull((JSONString) jsonRep.get(Keys.TYPE));
	}
	
}
